﻿#define  _CRT_SECURE_NO_WARNINGS 1
#include"game.h"

void game();

int main()
{
	srand((unsigned int)time(NULL));
	int input = 0;
	do
	{
		mean();
		scanf("%d", &input);
		switch (input)
		{
		case 1:
			printf("\n");
			game();
			break;

		case 0:
			printf("好的，再见\n");
			printf("\n");
			break;
		default:
			printf("不要乱选，重开!!! \n");
			printf("\n");
			break;

		}

	} while (input);
	


	return 0;
}


void game()
{
	printf("开始游戏\n");
	printf("\n");
	

	intiboard(mine, Rows, Cols,'0');
	intiboard(show, Rows, Cols, '*');//不要打印中文和宽字符，这两个东西一般都占两个字节，所以你这样肢解打印就会乱码

	setmine(mine, Row, Col);

	DisplayBoard(show, Row, Col);

	FindMine(mine,show, Row, Col);



	/*DisplayBoard(mine, show, Row, Col);*/
	

}


